<%= render :partial=>"filter_tab" %>

<table class="lister">
	<thead>
		<tr>
			<td width="5%">Rank</td>
			<td width="17.5%">Name</td>
			<td width="17.5%">Current Streak</td>
			<td width="60%">Next Bet</td>
		</tr>
	</thead>
	<tbody>
		<% @users.each_with_index do |user,index| %>
		<% rank = index + 1 %>
		<%= "<tr>" if (index % 1).zero? %>
			<td class="boldfont" style="font-size:17px;" height=100px width="5%"> <%= rank %> </td>
			<td>
				<p><%= fb_profile_pic user,{:size=>:square}%></p>
				<p><%= fb_name user %></p>
			</td>
			<td><%= winstreak_count user.winstreak %></td>
			<td><%= user_next_bet user %></td>
			<%= "</tr>" if (rank % 1).zero? %>
		<% end %>
		<% unless (@users.size % 1).zero? %>
			<td colspan="3"></td></tr>
		<% end %>
	</tbody>
</table>


<%= render :partial=>"filter" %>
<br/><center><hr width="25%" size="0.5px" color="#a7a7a7"></center><br/><br/>
<%= render :partial=>"invite_leaderboards" %>
